Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies, require node 20 #775

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

tadzik
Copy link
Contributor

@tadzik tadzik commented Mar 26, 2024

Signed off by: Tadeusz „tadzik” Sośnierz <signoff at tadzik dot net>

@tadzik tadzik requested a review from a team as a code owner March 26, 2024 12:08
@tadzik tadzik marked this pull request as draft March 26, 2024 12:11
@tadzik tadzik marked this pull request as ready for review March 29, 2024 09:32
@Cadair
Copy link
Collaborator

Cadair commented Apr 4, 2024

Looks sane to me, but the postgres integration test fail seems legit?

edit: oh wait, looks like it's just busted, so probably not related to this PR.

@tadzik
Copy link
Contributor Author

tadzik commented Apr 5, 2024

It's worth considering updating our matrix-appservice-bridge here and dropping NeDB while at it – we'd need to support a DB migration though.

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's needed to make that test pass?

@@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should make sure this works before merging.

@@ -25,14 +25,6 @@ const log = new Logger("substitutions");
const ATTACHMENT_TYPES = ["m.audio", "m.video", "m.file", "m.image"];
const PILL_REGEX = /<a href="https:\/\/matrix\.to\/#\/(#|@|\+)([^"]+)">([^<]+)<\/a>/g;

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming this is now part of the functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. I've now added tests to verify this.

@tadzik
Copy link
Contributor Author

tadzik commented Jun 4, 2024

What's needed to make that test pass?

It needed the default timeout increased, 2 seconds was not enough to apply DB migrations. Should be good now.

@@ -0,0 +1 @@
Require node 20, update dependencies.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be a .removal, as we're removing support. I'd put in stronger wording to say that Node 16 and 18 are no longer supported, and users need to update to Node 20.

I wouldn't both stating that dependencies are updated, it doesn't help the user any to know that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good points. Changed in 7f3cdec

@@ -13,6 +13,6 @@ jobs:
- name: Use Node.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N.B. Remember to update the Dockerfile.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in af9075b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants